from django.db import models

# Create your models here.
class Student(models.Model):
    ID = models.CharField(max_length=10)
    name = models.CharField(max_length=10)
    age = models.PositiveSmallIntegerField()
    sex = models.CharField(max_length=6)
    score = models.PositiveSmallIntegerField()

    def __str__(self):
        return '学生' + self.name

class ClassName(models.Model):
    className = models.CharField(max_length=12)
